package com.example.educationai.repository;

import com.example.educationai.entity.ExamRecord;
import com.example.educationai.entity.Exam;
import com.example.educationai.entity.SimpleUser;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface ExamRecordRepository extends JpaRepository<ExamRecord, Long> {
    List<ExamRecord> findByExam(Exam exam);
    List<ExamRecord> findByTeacher(SimpleUser teacher);
    List<ExamRecord> findByStudentName(String studentName);
} 